package com.h3c.web.common.helper;

import org.jasig.cas.CentralAuthenticationService;

import com.h3c.web.common.utils.SpringContextUtil;

public class CentralAuthenticationHelper {
	private static CentralAuthenticationService centralAuthenticationService = null;

	public void destroyTicketGrantingTicket(String tgt) {
		if (centralAuthenticationService == null) {
			initCentralAuthenticationService();
		}
		centralAuthenticationService.destroyTicketGrantingTicket(tgt);
	}
	public void initCentralAuthenticationService() {
		CentralAuthenticationHelper.centralAuthenticationService = SpringContextUtil
				.getBean("centralAuthenticationService");
	}
}
